<template>
  <BaseContainer>
    <aplid-base-crud ref="crud" class="w-100" v-bind="{ ...baseConfig, ...$attrs }">
      <template v-slot:ArchivesDialog="{ row, show }">
        <Archives @refresh="handleRefresh" :key="show" :nowRowData="row"></Archives>
      </template>
    </aplid-base-crud>
  </BaseContainer>
</template>

<script setup lang="ts">
import { baseConfig } from './config'
import Archives from '@/views/datacenter/basicData/serviceOrg/components/Archives/index.vue'

const crud = ref()
const handleRefresh = () => {
  nextTick(() => {
    crud.value.refreshChange()
  })
}
</script>

<style scoped></style>
